package com.ruicar.afs.cloud.channel.mange.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author: Lee
 * @date 2020-06-01 06:24:24
 * @description 展业区域
 */
@Data
@Accessors(chain = true)
@TableName(value = "channel_develop_region", autoResultMap = true)
public class ChannelDevelopRegion extends BaseEntity<ChannelDevelopRegion> {

    /**
     * 地区编码
     */
    @ApiModelProperty("地区编码")
    private String code;
    /**
     * 地区名称
     */
    @ApiModelProperty("地区名称")
    private String title;
    /**
     * 上级区域id
     */
    @ApiModelProperty("上级区域id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;
    /**
     * 是否是父节点 枚举值：是、否
     */
    @ApiModelProperty("是否是父节点 枚举值：是、否")
    private String isParent;
    /**
     * 排序序号
     */
    @ApiModelProperty("排序序号")
    private Double sortOrder;
    /**
     * 状态 枚举值：是、否
     */
    @ApiModelProperty("状态 枚举值：是、否")
    private String status;
    /**
     * 父节点名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "父节点名称")
    private String parentTitle;

}
